package cn.fuck;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;

public class TestFinally {
    public static void read() {
        InputStream in = null;
        try {
            try {
                in = new FileInputStream("D:\\IDEA\\Code016\\src\\cn\\fuck\\f.txt");
                byte[] bytes = new byte[100900];
                in.read(bytes);
                String s = new String(bytes, StandardCharsets.UTF_8);
                System.out.println(s);
            } finally {
                if (in != null) {
                    in.close();
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        read();
    }
}
